﻿@model FreightSoft.Models.SHIPMENTSCHEDULE

@{
    ViewBag.Title = "Create";
}

<h2>Create a Schedule</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>SHIPMENTSCHEDULE</legend>

        @*<div class="editor-label">
            @Html.LabelFor(model => model.SCHEDULEID)
        </div>
        <div >
            @Html.EditorFor(model => model.SCHEDULEID)
            @Html.ValidationMessageFor(model => model.SCHEDULEID)
        </div>*@

        <div class="editor-label">
            @Html.LabelFor(model => model.ORIGINPORT)

        </div>
        <div class="editor-field">
           @* @Html.EditorFor(model => model.ORIGINPORT)
            @Html.ValidationMessageFor(model => model.ORIGINPORT)*@

           @* @Html.DropDownList("Org_Port_Id", String.Empty)*@
             @Html.DropDownList("selectedOriginPortId", (SelectList)ViewBag.Org_Port_Id, " -- Select Origin Port -- ")
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.DESTINATIONPORT)
        </div>
        <div class="editor-field">
            @*@Html.EditorFor(model => model.DESTINATIONPORT)
            @Html.ValidationMessageFor(model => model.DESTINATIONPORT)*@
            @* @Html.DropDownList("Dest_Port_Id", String.Empty)*@
            @Html.DropDownList("selectedDestPortId", (SelectList)ViewBag.Dest_Port_Id, " -- Select Destination Port -- ")
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.SHIPID)
        </div>
        <div class="editor-field">
            @*@Html.EditorFor(model => model.SHIPID)
            @Html.ValidationMessageFor(model => model.SHIPID)*@
            @* @Html.DropDownList("Ship_Id", String.Empty)*@
            @Html.DropDownList("selectedShipId", (SelectList)ViewBag.Ship_Id, " -- Select a Ship -- ")
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ROUTEID)
        </div>
        <div class="editor-field">
           @* @Html.EditorFor(model => model.ROUTEID)
            @Html.ValidationMessageFor(model => model.ROUTEID)*@
            @* @Html.DropDownList("Route_Id", String.Empty)*@
             @Html.DropDownList("selectedRouteId", (SelectList)ViewBag.Route_Id, " -- Select a Route -- ")
        </div>

        @*<div class="editor-label">
            @Html.LabelFor(model => model.STATUS)
        </div>*@

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

